package com.fkdx.dao.mapper;

import com.fkdx.dao.condition.DictCondition;
import com.fkdx.dao.entity.Dict;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository()
public interface DictMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Dict record);

    Dict selectByPrimaryKey(Long id);

    int updateByPrimaryKey(Dict record);
    
    int updateSelective(Dict record);

    List<Dict> selectAll(DictCondition condition);

    int updateByIds(@Param("ids") List<Long> ids);

    Dict selectByCode(@Param("dictCode") String dictCode);

    List<Dict> selectDictMap(@Param("codes") List<String> codes);
}
